//
//  NSString+NRWPrice.m
//  NRWMall
//
//  Created by 邢毅 on 2018/5/23.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NSString+NRWPrice.h"

@implementation NSString (NRWPrice)

- (NSMutableAttributedString *)getCarPriceString {
    
    NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%.2f万", self.floatValue]];
    
    [attr setAttributes:@{NSFontAttributeName: getBoldFont(22),
                          NSForegroundColorAttributeName: getColor(@"#FF6C00")}
                  range:NSMakeRange(0, attr.length - 1)];
    
    [attr setAttributes:@{NSFontAttributeName: getThemeFont(13),
                          NSForegroundColorAttributeName: getColor(@"#FF6C00")
                          }
                  range:NSMakeRange(attr.length - 1, 1)];
    
    return attr;
}

@end
